package cn.demographic.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.demographic.dao.BloodtypeMapper;
import cn.demographic.dao.CultureMapper;
import cn.demographic.dao.FaceMapper;
import cn.demographic.dao.HealthMapper;
import cn.demographic.dao.MaritalstatusMapper;
import cn.demographic.dao.ReligiousMapper;
import cn.demographic.dao.WorkingconditionsMapper;
import cn.demographic.service.UserInformationService;
@Service
public class UserInformationServiceImpl implements UserInformationService{
	@Autowired
	private BloodtypeMapper bloodtypeMapper;
	@Autowired
	private CultureMapper cultureMapper;
	@Autowired
	private FaceMapper faceMapper;
	@Autowired
	private HealthMapper healthMapper;
	@Autowired
	private ReligiousMapper religiousMapper;
	@Autowired
	private WorkingconditionsMapper workingconditionsMapper;
	@Autowired 
	private MaritalstatusMapper maritalstatusMapper;
	
	/**
	 * 个人信息添加页面展示数据
	 * @return
	 */
	public Map<String , Object> find(){
		Map<String, Object> map = new HashMap<String,Object>();
		map.put("bloodtypeList", bloodtypeMapper.find() );
		map.put("cultureList", cultureMapper.find() );
		map.put("faceList", faceMapper.find() );
		map.put("healthList", healthMapper.find() );
		map.put("religiousList", religiousMapper.find() );
		map.put("workingconditionsList", workingconditionsMapper.find() );
		map.put("maritalstatusList", maritalstatusMapper.find() );
		return map;
	};
}
